import request from '@/utils/request.js'

// 首页
export function banner(query) {
    return request({
        url: '/pc/config/banner',
        method: 'post',
        params: query
    })
}

// 首页banner
export function menuimage(query) {
    return request({
        url: '/pc/common/menuimage',
        method: 'post',
        params: query
    })
}

// 栏目图片
export function category_image(query) {
    return request({
        url: '/pc/config/category_image',
        method: 'post',
        params: query
    })
}

// 协议
export function getxy(query) {
    return request({
        url: '/pc/config/getxy',
        method: 'post',
        params: query
    })
}

// 群艺馆
export function configGet(query) {
    return request({
        url: '/pc/config/get',
        method: 'post',
        data: query
    })
}

// 游林芝详情
export function visitDetail(query) {
    return request({
        url: '/pc/visit/detail',
        method: 'post',
        data: query
    })
}

// 游林芝分类
export function visitCategory(query) {
    return request({
        url: '/pc/visit/category',
        method: 'get',
        data: query
    })
}

// 游林芝列表
export function visitList(query) {
    return request({
        url: '/pc/visit/list',
        method: 'post',
        data: query
    })
}


// 友情链接
export function friendly(query) {
    return request({
        url: '/pc/config/friendly',
        method: 'post',
        data: query
    })
}

// 删除活动订单
export function activityDel(query) {
    return request({
        url: '/pc/activity/del',
        method: 'post',
        data: query
    })
}

// 删除培训订单
export function trainDel(query) {
    return request({
        url: '/pc/train/del',
        method: 'post',
        data: query
    })
}

// 删除场馆订单
export function venueDel(query) {
    return request({
        url: '/pc/venue/del',
        method: 'post',
        data: query
    })
}

// 群艺馆
export function commonMenu(query) {
    return request({
        url: '/pc/common/menu',
        method: 'post',
        data: query
    })
}

// 群艺馆
export function commonMy(query) {
    return request({
        url: '/pc/common/my',
        method: 'post',
        data: query
    })
}

// 点赞
export function commonLike(query) {
    return request({
        url: '/pc/common/like',
        method: 'post',
        data: query
    })
}

// 评论
export function setComment(query) {
    return request({
        url: '/pc/common/comment',
        method: 'post',
        data: query
    })
}

// 评论列表
export function comment_list(query) {
    return request({
        url: '/pc/common/comment_list',
        method: 'post',
        data: query
    })
}

// 收藏
export function commonCollect(query) {
    return request({
        url: '/pc/common/collect',
        method: 'post',
        data: query
    })
}

// 我的收藏
export function mycollect(query) {
    return request({
        url: '/pc/common/mycollect',
        method: 'post',
        data: query
    })
}

// 用户登录
export function userLogin(query) {
    return request({
        url: '/pc/user/login',
        method: 'post',
        data: query
    })
}

// 用户注册
export function userRegister(query) {
    return request({
        url: '/pc/user/register',
        method: 'post',
        data: query
    })
}

// 重置密码
export function userResetpwd(query) {
    return request({
        url: '/pc/user/resetpwd',
        method: 'post',
        data: query
    })
}

// 更改密码
export function userPassword(query) {
    return request({
        url: '/pc/user/password',
        method: 'post',
        data: query
    })
}

// 发送短信
export function send(query) {
    return request({
        url: '/pc/sms/send',
        method: 'post',
        data: query
    })
}

// 获取用户信息
export function userinfo(query) {
    return request({
        url: '/pc/user/getuserinfo',
        method: 'get',
        data: query
    })
}

// 编辑用户信息
export function userUpdate(query) {
    return request({
        url: '/pc/user/update',
        method: 'post',
        data: query
    })
}

// 消息列表详情
export function detailList(query) {
    return request({
        url: '/pc/message/detaillist',
        method: 'post',
        data: query
    })
}


// 消息详情
export function messageDetail(query) {
    return request({
        url: '/pc/message/detail',
        method: 'post',
        data: query
    })
}


// 底部
export function foot(query) {
    return request({
        url: '/pc/config/foot',
        method: 'post',
        data: query
    })
}

// 已读
export function messageRead(query) {
    return request({
        url: '/pc/message/read',
        method: 'post',
        data: query
    })
}

// 删除消息
export function messageDel(query) {
    return request({
        url: '/pc/message/del',
        method: 'post',
        data: query
    })
}